# import numpy as np
# score = np.arange(0,160,10,dtype='int')
# print('成绩数组score:\n',score)
# height = np.linspace(1.5,2.5,11,retstep=True)
# print('身高等差数组height:\n',height)
# wheat = np.logspace(0,63,64,base=2,dtype='uint64')
# print('棋盘麦粒等比数组wheat:\n',wheat)
import matplotlib.pyplot as plt
import numpy as np

x_arange = np.arange(0,2*np.pi,0.1)
y_arange = np.sin(x_arange)

x_linspace = np.linspace(0,2*np.pi,100)
y_linspace = np.sin(x_linspace)

plt.figure(figsize=(12,4))

plt.subplot(1,2,1)
plt.plot(x_arange,y_arange,label='arange')
plt.title('Using arange()')
plt.legend()

plt.subplot(1,2,2)
plt.plot(x_linspace,y_linspace,label='linspace')
plt.title('Using linspace')
plt.legend

plt.show()